<template>
  <div>
    <div class="box">测试</div>
    <button @click="add">添加</button>
  </div>
</template>
<script>
export default {
  data() {
    return {}
  },
  methods: {
    add() {
      console.log(`helloworld`)
    }
  },
  mounted() {
    console.log(`helloworld`)
  }
}
</script>
<style type="text/css">
.box {
  width: 100px;
  height: 100px;
  border: 1px solid #000;
}
</style>
